<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01-练习</title>
</head>
<body>
    <script>
        //用户输入
        //prompt('输入用户名')
        let nuamr = prompt('输入用户名')
        //结果打印输出
        document.write(nuamr)
    </script>
</body>
</html>